package com.wu.dms.controller;

import com.wu.common.convertion.result.Result;
import com.wu.common.convertion.result.Results;
import com.wu.dms.service.BannerService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Set;

/**
 *
 **/
@RestController
@RequiredArgsConstructor
@RequestMapping("/banner")
public class BannerController {


    private final BannerService bannerService;


    @GetMapping("/getAllBannerUrl")
    public Result<Set<String>> getAllBannerUrl() {
        return Results.success(bannerService.getAllBannerUrl());

    }
}
